<?php
use yii\helpers\Html;
use yii\helpers\Url;
//use yii\bootstrap\ActiveForm;
use yii\widgets\ActiveForm;
?>


<!--编辑导航开始-->
<div class="modal-dialog ">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">编辑顶部导航</h4>
            </div>
            <?php
            $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal', 'id'=>'navigation-form'],
                'action'=>Url::to(['system/topnavupd']),
                'method'=>'post',
                'fieldConfig' => [
                    'template' => '<div class="row form-group">
  <div class="col-md-3 control-label">{label}</div>
  <div class="col-md-8 controls">{input}{error}</div></div>'
                ],
            ]);
            ?>
            <div class="modal-body">
                <div class="row form-group">

                    <?= $form->field($model, 'config_id')->hiddenInput(['maxlength' => true,'class'=>'form-control']) ?>

                    <?= $form->field($model, 'config_key')->textInput(['maxlength' => true,'class'=>'form-control','disabled'=>'disabled','value'=>$model['config_key']]) ?>

                    <?= $form->field($model, 'nav_name')->textInput(['maxlength' => true,'class'=>'form-control']) ?>

                    <?= $form->field($model, 'nav_url')->textInput(['maxlength' => true,'class'=>'form-control']) ?>

                    <?= $form->field($model,'nav_status')->radioList(['1'=>'显示','0'=>'不显示'],['separator'=>" ","style"=>"padding-top:6px;"]); ?>
                </div>
            </div>
            <div class="modal-footer">
                <?= Html::Button('取消', ['class' => 'btn btn-link','data-dismiss'=>'modal']) ?>
                <?= Html::submitButton('保存', ['class' => 'btn btn-primary']) ?>
            </div>
            <?php ActiveForm::end(); ?>
        </div>
    </div>
<!--编辑导航结束-->